core: version check fix