fixing the list of flatlines