fixed jouyou filtering

some bugs fixed also