Fix overflow problem introduced in the #406 bugfix (scrolling is missing)