fix lineparser race condition