Fix of updating route and states according to API responses.