fix bug with className attribute and handle which call in first order