fix if tags does not exist