Fixed typo in parseImpl
Fixed implement function (would throw a stackoverflow before)