Small fix for reading file