fix bug #delete