correct bug in parsing of variables