bugfix for setting defaults