fix routes errors