fix reading from wrong map key