I created a button that when I click it set a layer visible by certain time using a "wait" function. After the time was passed, the layer must set to invisble automaticaly. In the first time that I click in the button it works but, in second time, it doesn't work or, in the third time maybe, after that, it stays in random, sometimes the layer set visible and wait "x" seconds to disable, sometimes not