Maybe fix for weird sort bug.