fix for proper div tag removing