Fixing version check