Fixed 2D output bug.