Fix params array passed to route handlers