Needed to do this to avoid the footer getting stuck hidden sometimes, due to race conditions when exported many times in a short span