Fixing bug after reset.