I tried the code that you gave and nothing has changed. I don't know why the if condition only that was work.

Thank you