Fix to reading file