Fix undefined variable in parser