fixed issue with delete