Fixed class cast exeption in sortFiguresBasedOnZoomability