make sure XCache is initialized correctly, fixes #301