STACK fixed unbalanced div count, + some more small fixes.