fixed #8 - iterating div tag causing the problem