fix bug not set poiter = NULL after attack