fixed resource

fixed some errors