Do you have another on connect event in the same script file?