Fixed errors in script with urls