Fixed version numbers

(Don't crash the app if a version number is invalid)