fix another gallery bug