really fixed the reset bug