Fixes on samples using the new URLBuilder

Fixes on samples using the new URLBuilder