fix nullpointer exception when loading version page