Removed the limit in queriesif the limit is explicitly set to null
Fixed typo in submodel lookup process where primaryKey was spelled primarykey