Fix problem with reset values