Bugfix: Setting default for envtype