fix route error in theme switch