Little fix in gallery CS