fixed code rendering in update_code_dict