Fixes #1278: routes were not reloaded immediately after module manipulation