fix url resolve bug