fixes delete gallery