Fix Galleries

Adds back the integer id for history module