Fixed Scheduler.

Signed-off-by: Wolftein <agustin.l.alvarez@hotmail.com>