Fix possibility of URLs added in incorrect order