fix a few bugs with the footer + end of level