fixes resetting nb_images in category configuration when confirming with no category opened