Fixed attribute error when version is None