Fix variables replacement for readHash()