fix a bug that does evil things with io->maps