fixed packet entity manager.