fix bug where items could not be deleted from a gallery when the user only had one gallery