fixed swaped variables

Fixed swapped vars that tried to use the payload as route name