fix fileobject