logic fix reset