Fix typos reported on irc (thanks!)
add more debug_prints in relation to bug 3049
re: last commit - of course, one debug_print() will do