point comparison bug fixed