Fixed Map Issues

- when merging before, extra lines were not taken out and so the program
could not read it properly. They are now taken out.