fix wrong conditional for pagination arrows