gallery v1.4
fix bug in previous commit