add some fixes for gallery