fixed StyleCompare for null values