fix category variable