Route API fix issue when registering multiple routes for a same condition.