fixed delete bug #12
fixed delete bug #12