Made Mac version check before fixing