fixed issue with version check