fixed bug with getCellSize