fixed a problem in Locationset; inserts will be put at the top