Fixed the bug with shutting the scenarios