Fixed WAL Calculation