It seems like what is happening is the mid_wrapper div is only adjusting to the size of the content not the side-bar. In Dreamweaver, when I click on mid_wrapper in live code, it makes a large blue square around the content length and seems to cut through any portion of the sidebar that is vertically longer than the content.
Putting the footer inside the mid_wrapper does not fix the problem.