Fix namespace examples

Just a couple of fixes I had to implement in order to get the namespace examples to run.