Defence lawyers said the girl was the subject of a nasty custody battle.