fixed bug for missing assignments