Fix leofs/issues/265