Some bugs when export routes