Fixed a bug in segmenting gestures for training.