Fixed possible targets not being cleared when clicking outside the board