Fix error with wrong reset