bug fix in version check