Fix tags deletion which also deleted contents