fixed map marker function