bug fix in removing first loop div