fixed a redirection issues when creating a new parent