Merge pull request #362 from asvitenkov/master

#341 fixed kbe crash