Filter kernel issue with pointer cast fixed