fixed delete error