fix to make it work for a XE