bug fix in style rule parsing order