fix bug with route prefixes