Fixing periodic connection timeout