fix api error for addState