Fix float coord comparsion bug