Fixed validation error bug in container trait.