Fix regression by correcting registry field type