Remove cursor and selection interferences