fixed latlon swap bug
fixed bug in histogram