fix missing vars