fix in update-hook