fixed file access bug in mapmaker.m