Fix urlPrefix bug