fixed bug in processing of entity erase messages