Fixes cpf mask