Fixed bug when entering an incorrect url