fix web can't generate error