Fix the imports and implementation for the error strings and Mask.