Fixed some issues with the slug regenerate task