fixed children order rendering and client rendering

sorry, tests are missing