Bug fix for widget grid pagination