Bug fix: put collapsed style into the style attribute