fix the parser bug