fix removing of unseen entities