fixed registration window persistence even after success.