Fixed situation

When the script is loading the user was able to open settings menu