Fix Error with log