fix duplciate parents