Fixed registering in Windows