Bug fix

Fixed issue with resource fetching