fixing Task.__metaclass__