this is a fix that by now make the findiff work for pca

The problems seems in calculating the derivative when align=displace. Need to be fixed.