fix rewriting by child properties