fixed parent loop