fix api not available