FIX: Error: global name 'publisher' is not defined.