fix cronjob registration

The cronjob registration fails because of a broken configuration access. This PR fixes the issue.