bug fixes in renming and setting target url