fix for empty data