fixing warning, changing initialization order in polystyle