Fix leo-project/leofs#281 leo-project/leofs#282