On a theorem of Kac and Gilbert