fix a bug for fileseek