sort and load fix