fixed logging of invalid string types