Fix bug when style is None.