fix bugs for ActiveHash