Fixed some version checking.