Fix context_type bug when using non-default connections

Version (1.1.1).