Fixed valid url bug