Bugfixes from geckoboard

Couple of bugs I discovered when integrating api-docs to https://developer.geckoboard.com