Fix adding common server dependencies if there are more than one listener of same type.