Fixed bug with undefinied style attribute