fixes log warning issue