Fixed segfault on train call. Cutting face works incorrectly, application crashes on exit