Reference fixes

Fixes for some small bugs that I found in the references of various modules...