Fixed issue with registry setting.