Fixed updating categories which removed associations with items