update: fix panic