Fixed ensure to file