fix for console bug