On Deuling's transition in a nematic liquid crystal