Fix multiple connections aliases being rewritten