fixing up some issues with the scroll demo