punish_type bug