Fix return error in code_change function.