A couple of small tweaks

These were a couple of enhancements and bug fixes from when I was working on a site integration with IssueM.