fix for xgb special serialization