[fix] Fix bug for has API