My script runs twice, extension

Thanks for replying, you gave me a clear idea of where to go.