fix supportsRepository()