fixed resource build issue