Fixing a bug in selection mark.