fixes incorrect reset