fixed delete problem