fixed a bug in the parse engine