Fixed a bug where debug messages would not show up.