fix some bugs when merge single routes