Fix wrong function add_bucket_for_type used by AsyncTaskBucket object