fix build for mapping