fixes log print format incorrect type