Bug Fix:  formula output was in the wrong order