fix extra NaNs when swing foot roll/pitch are freed

fixes #400