Bug fix on DELETE