Fixed minor error in logging functions