fix JSON serialization error. STUPID ME