Fixed an issue where the list of galleries was being shown twice.