Fix to issue with delete