Think I finally fixed local shape features extraction