Fix bug in xf:extract