fix compatibility with XeLaTex