WiFiNINA-ConnectWithWPA

I have an Arduino Uno WiFi Rev2 trying to connect to WiFi network using WiFiNINA libraries. When I scan the networks the board successfully detects the network on Channel 1 WPA2. The encryption is personal. But when I use ConnectWithWPA program, the board cannot connect to network. Do you know what is the problem?

Have you updated your NINA firmware to the latest version?

Yes I did