Fix gallery creation task