fixed delete data bug