Fixed bugs at sorted set structure.