Remove wrong flag for open file