fixed delete, fixes #3