fix bugs
decide QoS in (un)subscribe based on the len(topics)