Fix for not relaucnhing after close