fix gallery tapi