Some minor bugfixes

Here are some fixes of bugs that occurred in productive use of this cookbook.

HTH