Fixed resource_spec to work with STI