Fixing a reset issue