Fix bug in last urlrewrite commit