fix missing variable declaration