Fixed bug with child add

Matrix order of operations was wrong.