Fixed bug where sub-layer styles were not being set.