fix for emtpy data