fixed issues with log