Bugfix for closeCells