Fixed application back stack issues.