fix the localhost connections problem