Fix resource access