correctly clears selected brush if that brush is deleted