minor bug fixes
merged ethan's changes on sortable table