fixed subtle bug in ginkgo parallel mode