Fix handling arguments when app is activated.