fix getting column names when there is no record