Small bug in logging