Fixed an issue with currentStyle.