Arduino auto resets after opening serial monitor

I'm using Windows 10