fixing bug #5941 : node transaction error in gallery application