Fix permanent connections