Fix leo-project/leofs#246