add style-init hook
fix #967