Fix for pagination errors in detail view (ADWD-982)