a couple of minor bug fixes with the overlay thing