Small bug fix for when file is empty