Fixed potential crashing for immutable dictionary in connection.