Fixing show/limit setting

Fix #2835 breaks the show/limit setting for categories.