fix(routes): check modification before update