Fix EndThought processing.