bugfix for "reset"