Fixing a bug when changing the slug manually causes a crash