fixing categories behavior