Fixed bug in getting gallery info