Fix for Stylereset

Not very fine but it should work.