[Fixed bug with menu selection with custom scripts]