BUG: inpainting err now fixed