bug fix to sgf preparer