Fixed error in update routing