update: fix bug errors