Fixing infinite scheduler execution
minor