fix bug for optimization, url is empty not name