Fixing order of reset.