Style changes to fix erratic transitions