fix compile error: ResourcePath redeclared