Fixed a problem in the computing of a missing mask value.