coordinate validation fix