Default Switch from Airplane mode to Wifi problem

Every time I use the Airplane mode on my G900F it will not automatically switch to Wifi mode when is turn off the airplane mode.
I have selected the trusted wifi locations. Any suggestions?.