fixed bug in haralick