Log API bugs fixed