fix validate in case where resources are in different datapackage