bugfix: routes were not getting updated correctly