correcting cursor drawing behavior which depend on edition mode