Fixed small bug in log library