Fixes some errors in sortable lib