fixed bug in ordering