fixed error with empty cells