fixed parser boundary condition