fixed category bug