Fixes issue #3 for singleTask launchmode activities