fixed style update bug