bugfix in resource routing.