fix missing variables