Fix parent assignment through inject method.