I don't think, for once, you can dismiss this as poor writing or research. What a court would have to decide is what is in the best interests of the child and, in this case, it may be that the best interests of Simon is to be with Leanne. As his (ex) step-mother, she has every right to try and get custody of him.