bug fix for stranded e-i-j