Bugfix: forbid empty intervals