Fix leofs/issues/229