Fix problem in automatic import page that constantly closed the output span again