Minor fixes

Signed-off-by: Jon Ludlam <jonathan.ludlam@citrix.com>