Fix insertion of feature codes