fixed the stupid "extra entry" problem with reordering