Fixed opening wrong application view from notification

Closes #717