fix replacement with map file