update: fix bugs.