fixed possibility of version being missing