Correction for code_data when no code type specified