fix for empty attributes