fix for #163 and inline style cleanup