fix for attempting to serialize a non-existent entity
bumped to version 1.0.2