fixed bug, encoder will mess with log time