Fix a collision detection bug at TableView