fix style crash