Fixed a sortable/scrollspy bug