fix uninstantiated variable