order of cases in result parser was incorrect