Fixed edit category form, removes child/parent media