Fixing show/limit setting

Fix #2835 breaks the show/limit setting for categories.
Merge pull request #2913 from Just-m/JM-20140205

Fixing show/limit setting