fixed NPE during latitude sorting