fixed bug where entity was not being returned on create