ReSort Exception fixed