Fixed extend() arg passing, gallery activation