Fixed gallery bug.