Bug fixes

Fix bugs that occur when the list content does not fill the available
height.