Minor fixes to knowitall machine