fix unresolved variable