fixed problem with log