[fix] gallery API bug fix