fix warnings in console mode