Attempt to fix examples.

But I have a feeling there is still some bugs in gloo