routes: fix "Internal error"