if function and default to vars
Merge branch 'hotfix/0.8.1'

* hotfix/0.8.1:
  if function and default to vars