Fixed the application redirector