corrected coordinate error