Won't reconnect on router restart

I’m having a wifi connectivity issue with my Astrobox pi 2 + TP link dongle.

It would not reconnect to my router once I restart my router. It seems to forget the whole configuration. I have to connect the Astrobox via LAN cable and configure wifi again manually.