logical fix

fixed case where fid2 can be empty string and not nonetype