fix minor bug of non-default registry source.