Fixes from @RMBQ

Signed-off-by: Paul Keith <javelinanddart@gmail.com>