fixed bug in reordering capability