Cleaned up periodic defect constraints in walking