bug fix for reset