Exit select mode if entity gets undone