bugfix: intervals saved in wrong collection