fixed errors in dojo rules