Fixed errors in version check class