fixed category selection bug