fixed checking Airplane mode.