avoid log caused exceptoin