fixes the xbe loader to handle dodgy files