Add some bug fixes for agreement population and body resize.