bugfix for multiple variables