fixed parse loop