Should check $recursive flag before reset parent count.