fix parse() with undefined variables