findbug fixes for console
Merge pull request #2770 from mesutcelik/consolefixes

findbug fixes for console