fixed a bug with the logger class