fixed $sched $_SESSION errors

Fixed bug where the correct $sched was not being loaded
according to the $_SESSION.