New local refinement error

For posterity, the error was due to a binary mask being used – workaround mentioned here resolved the issue.