fix mask block loss on save