Fix using in memory subscription with provider registration