fixed recursive symbol resolution