- fixed bug leading to crash (sorting)