bugfix for var parse