In a general case, it would be a possible fix to #109 while the issue might still be rather xgboost-specific.