Fixed 404 link when creating galleries