fixed editing galleries