fixing Schedule constructor