Reset bug fix