Fix broken cursor placement in Chrome