fixes map already initialized error