fixing the problem of weird logs