make delete map work a bit better