fixed bug that didnt parse data properly