Fixed issue causing unnecessary log messages