v0.13.1 gallery fix