Fixes bug when working with hash_only tables