bugfix: scheduler should not be null reference