a little bugfix in the variable parsing