Fixed bug with missing history information for gallery