Fixes selecton of marker after scaling