Did you paint using the pencil tool or using the regular brush? The regular brush does blending which messes things up. Increasing the mask dilation will probably make it work anyways but it’s easier to just use the pencil.
On a side note, you probably don’t want to use the morphological inpainting in this case. Multiscale or patch based are probably going to perform better.