Project Project Management | How do I demote a task from “Completed” to “Draft”?

When I demote a task, it says, “Parent already in 'Complete' maturity state. Demote the parent first”. But I am not able to demote its parent task while the child task is marked completed.