fix: NameError: global name 'vial' is not defined