corrected xca

Fixes #3939.
Merge pull request #5111 from vitorgalvao/fix-xca

corrected xca