Insert filter correctly