Fix bugs

Spenser Shumaker <sshumake@redhat.com>