Fix taskContainer generation.