Fix error where wavenorm was applied twice in computing error on data