More bug fixes

Signed-off-by: David Noble <dnoble@splunk.com>