Bug fix for when an opened file has 0 lines (pretty odd)