fix bug caused by no update attribute