task: Fix uninitialized variable