fixed init state error