fix errors when ket cannot be parsed
Merge branch 'master' of divzero.de:statgen