Fixed the fragile output element problem.