bugfixes

Signed-off-by: Thad Allender <thadallender@gmail.com>