Sanitize coordinates after shifting