Fixes to replace flagged data with data from a random noise buffer