$child not defined?