fixed bug with tags = None