fix interval to csv