fixed null reference exception when accessing version number