[PATCH] File positions are 0-based