assignment bug fixed: assignment should be saved after modified