Fix conflict between toggling/loading of styles.