fix creation of user with a entity having no internal context