fixed offsets in selection box on mac os (and probably other platforms)