Removed trailing spaces
Reapply the old mask after postprocessing

The mask may have been applied due to overflow, but it may be due to a data spike.
We need to reapply the mask to be safe.