fixed setting initial state