fix bug on update entry