Fix problem where duplicate slug would cause an update exception