fixed error in resource(?)