Fixed bug when generating routes for SARIS