temporary fix for gallery