minor fix for gallery