fix api issue