fixed bug in parse