Put state property as the last one in assignment order
Remove debug code
Fix setStyleProperty and getStyleProperty