TuilSecurityDlg not saving dialog positions

When I select the save to registry option. The TuilSecurityDlg is not saving my dialog positions. If I execute the dialog and re-size it doesn't save my position. I can go into the registry and manually change the settings and they will restore.

Does your app has the permissions to write in the registry at the node you selected?

Yes. It save the settings once, but when you resize the dialog box it doesn't updated the registry with the new size. If I change the sizes with regedit it will use them.