bugfix: ignoring empty cells at the end of the list