fix issue with empty locus check