fix bug when cursor targets two things at once