Fix bug with string 'schedule' key instead of symbol