Changed rule priority in rewrites + versioning