Removes condition that was causing opened closing div tags without openning them