Revert "Fixed a defect in Deque and HashBucket"

This reverts commit f97072481634661117909807eda580ab8d13299b.