bug fix on update btn