fix valid() in efs format