fixes to loop filter.