fix emtpy errors