fixed some issues with reading schedule