Fix issue with assigning latest schedule