[fix] Don't try to remove entries from immutable collections