corrects the unassigned  attr imgs detection