Fix return code parsing error