Fixed recent mistake on refactoring of wal classes