fix problem with impossible events in self-trained BSSM

patch by Volker Brendel