Registry constant bug