fix container isvalid