Update embparser.cpp

fixed a gate issue.