fix for var error