Fixed showmap function