fix issue where wrong route was used