Fix frontend category and brand pagination