fseek bug fix