file handler fix