Fixed so that same script cant be opened twice