Fixed bugs in Agnes' gallery