Fix a bug, save wrong type when insert issue