fixed an error in routes