fixed bug with ordering in profile history