fixed #35, infinite loop in SsParser