fixed bug in parseUntil