Fix or improve various issues in tags api