fix exception on unintialized map