Fixed an idiotic bug in scheduler_enqueue()