fix problem with impossible events in self-trained BSSM

patch by Volker Brendel
Merge pull request #34 from gordon/master

fix problem with impossible events in self-trained BSSM