Fixed reset sometimes not working