fixed wrong logging type