Handle hash callback correctly.