in spite of her age and gender , she 'd been recently appointed the homicide division commander following a scandal that had claimed badges all the way to the top , decimating an already undermanned police force .