Fixed the orphan issue by custom writing some sql