Fixed reference to old function in cmd_worker