Syntax error in worker.cpp