Fix types in dojo rules