Fix connect to work with new attach script