bug fix for assignment editing