Fix bilateral filter