Fixed bugs with styles