An error about json fixed
Cleaned some unused references