fix director$resource method