fix two errors in dojo_rules