fixed resource warnings