fix category array usage