fixed bugs pertaining to creation of registry