Fixing typo in registerTask example