Fix undefined reference.
Mask save callback (bugfix).