fixed a bug. Logger is not possible