fixed styles join error when multiple styles are defined