fix category selection to work with slugs