fix selecting color with float coordinates