Update data-fix.py

fixing the code to align the intervals better with the data