Repaired the bucket reset method.