Fixed crash bug when launching app from a URL.