Fix issue with addStyle