Make sure map is defined