1. modify a bug in haar_8
2. modify a bug in validate