fix possible parser crash