fix obvious bugs

Signed-off-by: Stephen Gran <steve@lobefin.net>