fixed reset logic. this shit sucks. i've fixed this a million times