Some fixes for the `coin' plugin

Hey, I'm pretty new to Tcl, leave me alone.