Fixed Creating an entity triggers a silent error (issue #536)