fixed uninit bug in xboard