fixed an issue that could occur when the project was not running as an administrator.