Fix unability to delete pics