Fixed bug causing error messages from API while trying to create entities.