fixed resource edit template error