fix weird category behavior