fixed minor bug introduced during the merge from trunk
Merge pull request #1 from davydden/branch_petscscalar_complex

fixed minor bug introduced during the merge from trunk