Fix list not being sorted