fix entries not inserted properly when no languages are detected