fixed map initialization issue