bugfix for empty scheduler