fixing noob script closing elm issue