bug in gait decomposition fixed