fix bug in delete() method
Merge pull request #1 from Parsely/master

fix bug in delete() method