Fixed a bug with version checking