fixed logging type case