Fix routes getting lost when loading app routes twice