fix bug in localmoments.pyx