fix links after close