fixing file ensure