fixed file loading issue if file had a header but no data