Fixing some scrolling performance issues when render is called. Misc bug fixes.