Fix child position bug