Fix errors for file objects