fixed the reset