assignment bug fix