fixed bug with styles