Corrected datatypes when loggin data