corrects the assignment check