Fixed an issue with checking the wrong version number