Fix to ISSUE #6 "Error on delete() "