fixing cursor movement and selection bubble placement