bug fixes related to style parsing