Fix Invalid Value for Registry