fixed double ids bug