sdlog2 bugs fixed