Type conversion bug fix and allow get_log of last fetch