fixed Converting circular structure to JSON error