Worker: pre-loop initialization fixes

Signed-off-by: Eduardo Silva <edsiper@gmail.com>