bugfix for setting