fix NPE when used version range