Fixed error with rewriting existing child