fixed file handle