fixing categorical attributes