bug fix for the reset method