Fixed update hash to work when map has not drawn yet