fixed map file generation