Fixed bug when API return single dictionary