fixed label extraction exception for unknown languages