fixing broken insert mapping