Fix error on routes