Fixing similarity equation